package day03;

public class OperDemo6 {
    public static void main(String[] args) {
        //条件运算符的演示：boolean?数1：数2
        int num = 5;
        int flage = num > 0 ? 1 : -1;
        System.out.println(flage);

        int a = 8, b = 5;
        int max = a > b ? a : b;
        System.out.println("max=" + max);

        int c = 9, d = 10;
        int ww = c < d ? d : c;
        System.out.println(ww);

    }
}
